For a Few Dollars More: Verified Fine-Grained Algorithm Analysis Down to LLVM

نویسندگان

چکیده

We present a framework to verify both, functional correctness and (amortized) worst-case complexity of practically efficient algorithms. implemented stepwise refinement approach, using the novel concept resource currencies naturally structure analysis along chain, allow fine-grained operation counts. Our targets LLVM intermediate representation. extend its semantics from earlier work with cost model. As case studies, we amortized constant time push on dynamic arrays O ( n log ) introsort algorithm, refine them down implementations. sorting algorithm performs par state-of-the-art implementation found in GNU C++ Library, provably satisfies required by standard.

برای دانلود باید عضویت طلایی داشته باشید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Crellvm: Verified Credible Compilation for LLVM

Production compilers such as GCC and LLVM are large complex software systems, for which achieving a high level of reliability is hard. Although testing is an effective method for finding bugs, it alone cannot guarantee a high level of reliability. To provide a higher level of reliability, many approaches that examine compilers’ internal logics have been proposed. However, none of them have been...

متن کامل

A Fine-grained Analysis of a Simple Independent Set Algorithm

We present a simple exact algorithm for the INDEPENDENT SET problem with a runtime bounded by O(1.2132npoly(n)). This bound is obtained by, firstly, applying a new branching rule and, secondly, by a distinct, computer-aided case analysis. The new branching rule uses the concept of satellites and has previously only been used in an algorithm for sparse graphs. The computer-aided case analysis al...

متن کامل

Points-to Analysis: A Fine-Grained Evaluation

Points-to analysis is a static program analysis that extracts reference information from programs, e.g., possible targets of a call and possible objects referenced by a field. Previous works evaluating different approaches to context-sensitive Pointsto analyses use coarse-grained precision metrics focusing on references between source code entities like methods and classes. Two typical examples...

متن کامل

Top-down attention selection is fine grained.

Although much is known about the sources and modulatory effects of top-down attentional signals, the information capacity of these signals is less known. Here, we investigate the granularity of top-down attentional signals. Previous theories in psychophysics have provided conflicting evidence on whether top-down guidance is coarse grained (i.e., one gain control term per feature dimension) or f...

متن کامل

Fine-Grained Algorithm Design for Matchin

Finding maximum-cardinality matchings in undirected graphs is arguably one of the most central graph problems. For m-edge and n-vertex graphs, it is well-known to be solvable in O(m √ n) time; however, for several applications this running time is still too slow. Improving this worst-case upper bound resisted decades of research. In this paper we mainly focus on parameterizations of the input w...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: ACM Transactions on Programming Languages and Systems

سال: 2022

ISSN: ['1558-4593', '0164-0925']

DOI: https://doi.org/10.1145/3486169